package cn.cmvideo.springboot.netty;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

public class NettyServerHandler extends SimpleChannelInboundHandler<String>
{

	private Logger log = LoggerFactory.getLogger(NettyServerHandler.class);

	@Override
	protected void messageReceived(ChannelHandlerContext ctx, String msg) throws Exception
	{
		log.info("客户端socket:{},客户端消息:{}", ctx.channel().remoteAddress(), msg);
	}

}
